# _*_ coding : utf-8 _*_
# @Time : 2023/12/12 10:22
# @Author : 韩宗森
# @File : 28_requests_get
# @Project : pythonProject

import requests

url = 'https://www.baidu.com/s?'

data = {
    'wd': '南宁'
}

headers = {
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36'
}

# url请求资源路径  params参数  kwargs字典
response = requests.get(url=url, headers=headers, params=data)

content = response.text

print(content)
